package com.wobito.pojo.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author Wangbaba
 * @Date 2024/7/1 10:18
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value ="t_cabinet_lat")
public class CabinetLat {

    @TableId(value = "id")
    private Long id;

    @TableField(value = "cabinet_id")
    private Long cabinetId;

    @TableField(value = "code")
    private Integer code;

    @TableField(value = "name")
    private String name;

    @TableField(value = "state")
    private Integer state;

    @TableField(value = "type")
    private Integer type;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(value = "delete_time")
    private Date deleteTime;

    public CabinetLat(Integer type) {
        this.type = type;
    }

    public CabinetLat(Long id, Integer state) {
        this.id = id;
        this.state = state;
    }

    public CabinetLat(Long id, Long cabinetId, Integer type, Date updateTime) {
        this.id = id;
        this.cabinetId = cabinetId;
        this.type = type;
        this.updateTime = updateTime;
    }

    public CabinetLat(Long id, Integer state, Date deleteTime) {
        this.id = id;
        this.state = state;
        this.deleteTime = deleteTime;
    }
}
